package com.lemurian.bankdata.lite.enums;

import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;

public enum ApplicationCategory {
	
	USER_TYPES(1),
	TIPE_DEPARTEMEN(7),
	DEPARTEMEN_PPAT(8),
	DEPARTEMEN_NOTARIS(9),
	DEPARTEMEN_PPAT_NOTARIS(11),
	AKTA_NOTARIS(12),
	KEPENGURUSAN_NOTARIS(13),
	AKTA_PPAT(14),
	KEPENGURUSAN_PPAT(15),
	JENIS_DOKUMEN(16),
	STATUS_PEMBELI(17),
	
	KODE_URUSAN_PPAT(18),
	KODE_URUSAN_NOTARIS(57),
	
	KETERANGAN_DOKUMEN(19),
	BANK(20),
	SERTIFIKAT(44),
	KETERANGAN_SERTIFIKAT(46);
	
	
	int categoryId;
	
	private static final Map<Integer, ApplicationCategory> lookup = new HashMap<Integer, ApplicationCategory>();
    private static final Map<String, ApplicationCategory> lookupString = new HashMap<String, ApplicationCategory>();

    static {
        for (ApplicationCategory s : EnumSet.allOf(ApplicationCategory.class)) {
            getLookup().put(s.code(), s);
            getLookupString().put(s.name(), s);
        }

    }

    public static Map<Integer, ApplicationCategory> getLookup() {
        return lookup;
    }

    public static Map<String, ApplicationCategory> getLookupString() {
        return lookupString;
    }

    ApplicationCategory(int categoryId) {
        this.categoryId = categoryId;
    }

    public int code() {
        return categoryId;
    }
}